<h1>List of Electives Allowed to be Taken</h1>

<div id="electives">	
	<?php echo '<b><i>' . form_label('Computer Science') . '</i></b>';?>
	<table>
		<?php 
			$ctr = 0;
			echo "<tr>";
			foreach($e_cs as $item){
				if($ctr != 2){	//To setup how many checkboxes are there in a row.
					echo "<td width=120>" . form_label($item) . "</td>";
					$ctr = $ctr+1;
				}else{
					echo "<td width=120>" . form_label($item) . "</td>";
					echo "</tr>";
					$ctr = 0;
				}
			}
		?>
	</table>
	</br>
	
	<?php echo '<b><i>' . form_label('Applied Mathematics') . '</i></b>';?>
	<table>
		<?php 
			$ctr = 0;
			echo "<tr>";
			foreach($e_am as $item){
				if($ctr != 2){	//To setup how many checkboxes are there in a row.
					echo "<td width=120>" . form_label($item) . "</td>";
					$ctr = $ctr+1;
				}else{
					echo "<td width=120>" . form_label($item) . "</td>";
					echo "</tr>";
					$ctr = 0;
				}
			}
		?>
	</table>
	</br>
	
	<?php echo '<b><i>' . form_label('Development Communication') . '</i></b>';?>
	<table>
		<?php 
			$ctr = 0;
			echo "<tr>";
			foreach($e_dc as $item){
				if($ctr != 2){	//To setup how many checkboxes are there in a row.
					echo "<td width=120>" . form_label($item) . "</td>";
					$ctr = $ctr+1;
				}else{
					echo "<td width=120>" . form_label($item) . "</td>";
					echo "</tr>";
					$ctr = 0;
				}
			}
		?>
	</table>
	</br>
	
	<?php echo '<b><i>' . form_label('Economics and Management') . '</i></b>';?>
	<table>
		<?php 
			$ctr = 0;
			echo "<tr>";
			foreach($e_em as $item){
				if($ctr != 2){	//To setup how many checkboxes are there in a row.
					echo "<td width=120>" . form_label($item) . "</td>";
					$ctr = $ctr+1;
				}else{
					echo "<td width=120>" . form_label($item) . "</td>";
					echo "</tr>";
					$ctr = 0;
				}
			}
		?>
	</table>
	</br>
	
	<?php echo '<b><i>' . form_label('Humanities') . '</i></b>';?>
	<table>
		<?php 
			$ctr = 0;
			echo "<tr>";
			foreach($e_hum as $item){
				if($ctr != 2){	//To setup how many checkboxes are there in a row.
					echo "<td width=120>" . form_label($item) . "</td>";
					$ctr = $ctr+1;
				}else{
					echo "<td width=120>" . form_label($item) . "</td>";
					echo "</tr>";
					$ctr = 0;
				}
			}
		?>
	</table>
	</br>
	
	<?php echo '<b><i>' . form_label('Forestry Resource Management ') . '</i></b>';?>
	<table>
		<?php 
			$ctr = 0;
			echo "<tr>";
			foreach($e_frm as $item){
				if($ctr != 2){	//To setup how many checkboxes are there in a row.
					echo "<td width=120>" . form_label($item) . "</td>";
					$ctr = $ctr+1;
				}else{
					echo "<td width=120>" . form_label($item) . "</td>";
					echo "</tr>";
					$ctr = 0;
				}
			}
		?>
	</table>
	</br>
	
	<?php echo '<b><i>' . form_label('Physics') . '</i></b>';?>
	<table>
		<?php 
			$ctr = 0;
			echo "<tr>";
			foreach($e_p as $item){
				if($ctr != 2){	//To setup how many checkboxes are there in a row.
					echo "<td width=120>" . form_label($item) . "</td>";
					$ctr = $ctr+1;
				}else{
					echo "<td width=120>" . form_label($item) . "</td>";
					echo "</tr>";
					$ctr = 0;
				}
			}
		?>
	</table>
	</br>
	
	<?php echo '<b><i>' . form_label('Social Science') . '</i></b>';?>
	<table>
		<?php 
			$ctr = 0;
			echo "<tr>";
			foreach($e_ss as $item){
				if($ctr != 2){	//To setup how many checkboxes are there in a row.
					echo "<td width=120>" . form_label($item) . "</td>";
					$ctr = $ctr+1;
				}else{
					echo "<td width=120>" . form_label($item) . "</td>";
					echo "</tr>";
					$ctr = 0;
				}
			}
		?>
	</table>
	</br>
	
	<?php echo '<b><i>' . form_label('Statistics') . '</i></b>';?>
	<table>
		<?php 
			$ctr = 0;
			echo "<tr>";
			foreach($e_stat as $item){
				if($ctr != 2){	//To setup how many checkboxes are there in a row.
					echo "<td width=120>" . form_label($item) . "</td>";
					$ctr = $ctr+1;
				}else{
					echo "<td width=120>" . form_label($item) . "</td>";
					echo "</tr>";
					$ctr = 0;
				}
			}
		?>
	</table>
	</br>
	
	<?php echo '<b><i>' . form_label('Industrial Engineering') . '</i></b>';?>
	<table>
		<?php 
			$ctr = 0;
			echo "<tr>";
			foreach($e_ie as $item){
				if($ctr != 2){	//To setup how many checkboxes are there in a row.
					echo "<td width=120>" . form_label($item) . "</td>";
					$ctr = $ctr+1;
				}else{
					echo "<td width=120>" . form_label($item) . "</td>";
					echo "</tr>";
					$ctr = 0;
				}
			}
		?>
	</table>
	</br>
	
<?php echo anchor('student/index','Back to Home Page');?> </br>
<?php echo anchor('student/logout','Logout');?>